using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;

using ESBSimpleSamples.ServiceComponents.Encoding;

namespace ESBSimpleSamples.Services.Web
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://ESBSimpleSamples.BizTalk.Schemas/1.0/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    public class Service1 : System.Web.Services.WebService
    {

        [WebMethod]
        public byte[] GetASCIICode(string Character)
        {
            return new ASCIIService().GetCharacterCode(Character);
        }

        [WebMethod]
        public byte[] GetUnicodeCode(string Character)
        {
            return new UnicodeService().GetCharacterCode(Character);
        }
    }
}
